import { axios } from '@/utils/request'

/**
 * 查询库区
 *
 * @author Eric
 * @date 2021-04-03 19:08:53
 */
export function storehouseAreaPage (parameter) {
  return axios({
    url: '/storehouseArea/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 库区列表
 *
 * @author Eric
 * @date 2021-04-03 19:08:53
 */
export function storehouseAreaList (parameter) {
  return axios({
    url: '/storehouseArea/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加库区
 *
 * @author Eric
 * @date 2021-04-03 19:08:53
 */
export function storehouseAreaAdd (parameter) {
  return axios({
    url: '/storehouseArea/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑库区
 *
 * @author Eric
 * @date 2021-04-03 19:08:53
 */
export function storehouseAreaEdit (parameter) {
  return axios({
    url: '/storehouseArea/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除库区
 *
 * @author Eric
 * @date 2021-04-03 19:08:53
 */
export function storehouseAreaDelete (parameter) {
  return axios({
    url: '/storehouseArea/delete',
    method: 'post',
    data: parameter
  })
}
